package com.ymx.darling.type;

import java.sql.*;

public class BlobHandler implements TypeHandler<Blob> {

    @Override
    public Blob getResult(ResultSet resultSet, int columIndex) throws SQLException{
        return resultSet.getBlob(columIndex);
    }

    @Override
    public void setParameter(PreparedStatement statement, Blob value, int index) throws SQLException {
        statement.setBlob(index, value);
    }
}
